Airwallex\Gateways\ExpressCheckout D

Total Complexity 148
Dependencies 22
Dependents 5
Total lines 1,044
Lines of code 776
Logical lines of code 314
Comment lines 104
Methods 46
Properties 9

Methods 46

Method Rating Maintainability Complexity Lines of code
shouldShowExpressCheckoutButton()
B
47 17 35
displayExpressCheckoutButtonHtml()
A
42 10 59
process_payment()
A
39 8 62
isProductSupported()
A
54 10 20
getActiveCardSchemes()
A
47 8 36
init_form_fields()
S
36 2 96
hasSubscriptionProduct()
S
55 7 19
isCartItemsAllowed()
S
55 6 19
getCheckoutDetail()
S
49 5 30
getExpressCheckoutScriptData()
S
44 4 44
addOrderMeta()
S
58 6 14
isAuthenticationRequired()
S
65 5 9
getProduct()
S
60 4 13
process_refund()
S
51 3 26
do_subscription_payment()
S
52 3 23
getLoginConfirmationSettings()
S
58 3 16
getExpressCheckoutSettingsScriptData()
S
52 2 26
registerHooks()
S
52 2 22
__construct()
S
48 1 35
getPreOrderProductFromCart()
S
70 3 6
isAccountCreationPossible()
S
68 3 7
isPageSupported()
S
73 3 5
subscription_payment_information()
S
68 3 7
isPreOrderProductChargedUponRelease()
S
77 3 3
generate_google_pay_instruction_html()
S
57 1 18
generate_apple_pay_instruction_html()
S
58 1 17
getSupportedProductTypes()
S
60 1 16
getCreatePaymentIntentUrl()
S
70 2 5
validate_payment_methods_field()
S
77 2 3
registrationEmailExistsError()
S
66 2 8
isCartOrCheckout()
S
79 2 3
isProduct()
S
79 2 3
enqueueAdminScripts()
S
65 1 11
getShowButtonOn()
S
80 1 3
generate_alert_html()
S
67 1 9
is_capture_immediately()
S
78 1 3
generate_button_preview_html()
S
73 1 5
displayExpressCheckoutButtonSeparatorHtml()
S
75 1 5
getButtonType()
S
80 1 3
getButtonSize()
S
80 1 3
getButtonTheme()
S
80 1 3
shouldShowButtonOnPage()
S
79 1 3
isMethodEnabled()
S
78 1 3
isCardGatewayEnabled()
S
77 1 3
loadAppleScript()
S
68 1 9
getMetaData()
S
66 1 8